﻿<%@ Page Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="EmailConfig.aspx.cs" Inherits="EmailMarketingCampaign.EmailConfig" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
   
    <style type="text/css">
    .style1
    {
        width: 154px;
    }
</style>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    
     <div class="content">
<div id="post-69" class="post">
 <span class="absolute box_2_t_l"></span> 
 <span class="absolute box_2_t_r"></span> 
 <span class="absolute box_2_b_l"></span>
  <span class="absolute box_2_b_r"></span>


<p class="a">SMTP Server Setting </p>
 <div class="details">
    
        <table class="style1">
            <tr>
                <td class="style1">
                    Current SMTP</td>
                <td class="style5">
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                </td>
                <td class="style4">
                    <asp:Button ID="btnAdd" runat="server" Height="27px" Text="Add" Width="71px" 
                        CssClass="button" onclick="btnAdd_Click" />
                </td>
                <td class="style4">
                
                    </td>
            </tr>
            <tr>
                <td class="style8" colspan="3">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                        Width="414px" DataKeyNames="ID" DataSourceID="dsMySQL">
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:RadioButton ID="RadioButton1" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="server" HeaderText="Server Address" />
                            <asp:BoundField DataField="user" HeaderText="UserName" />
                        </Columns>
                                    <PagerStyle HorizontalAlign="Center"  />
                <HeaderStyle BackColor="#67A897" ForeColor="White"  Height ="30" HorizontalAlign="Center" />

                    </asp:GridView>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
           
            <tr>
                <td class="style2" colspan="4">
                    <asp:Panel ID="Panel1" runat="server">
                        <table class="style1">
                            <tr>
                                <td class="style6">
                                    <asp:Label ID="Label2" runat="server" Text="SMPT Server"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtSmtp" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style6">
                                    <asp:Label ID="Label3" runat="server" Text="User Name"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtUser" runat="server"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="style6">
                                    <asp:Label ID="Label4" runat="server" Text="Password"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:Button ID="btnConfirm" runat="server" CssClass="button" Height="27px" 
                                        onclick="btnConfirm_Click" Text="Confirm" Width="71px" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td class="style3">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td class="style3">
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
                <td>
                    <asp:SqlDataSource ID="dsMySQL" runat="server" ConnectionString="<%$ ConnectionStrings:EmailMarketing_DBConnectionString%>" ProviderName="<%$ ConnectionStrings:EmailMarketing_DBConnectionString.ProviderName %>"
    SelectCommand="select * from server  where COMUniquelID =?COMUniquelID order by ID">
       <SelectParameters> <asp:SessionParameter Name="COMUniquelID"  SessionField="COMUniquelID"  Type="String" />   </SelectParameters>
</asp:SqlDataSource>
    </td>
            </tr>
        </table>
    
   </div>
  
  
    </div>
 </div>
 
    </asp:Content>